package day1601;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public class hashmap {
    public static void main(String[] args) {
        HashMap<Integer,String> a = new HashMap<>();
        a.put(0,"aaaa");
        a.put(1,"aaab");
        a.put(2,"aaac");
        a.put(3,"aaad");
        a.put(4,"aaae");
        a.put(5,"aaaf");
        a.put(6,"aaag");

//        Set<Integer> b = a.keySet();
//        for (Integer c:b){
//            System.out.println(a.get(c));
//        }

//        Set<Map.Entry<Integer,String>> b = a.entrySet();
//        for(Map.Entry c:b){
//            System.out.println(c.getKey());
//            System.out.println(c.getValue());
//        }

        System.out.println(a.get(3));
        System.out.println(a.isEmpty());
        System.out.println(a.size());

    }
}
